import {QlNotificationService} from "qloud-angular/package/notification/notification.service";
import { Component, OnInit,Output,Input, EventEmitter,ViewChild, ViewContainerRef } from '@angular/core'
import { FormGroup, FormBuilder } from '@angular/forms'
import { ModalService } from '@app/shared/utils'
import { NetService, PageService } from '@app/core/http'
import { ApiService } from '../../services/dashboard.service'
import { QlMessageService } from 'qloud-angular'
import { Router } from '@angular/router'
@Component({
  selector: 'app-industry-concentrate',
  templateUrl: './industry-concentrate.component.html',
  styleUrls: ['./industry-concentrate.component.css'],
  providers: [ModalService, PageService, ApiService]
})
export class IndustryConcentrateComponent implements OnInit {
    @Input()  hdata5: any; // 接收父组件charts的高度值
    index ='1';
    tabIndex = '1';
    oneNews: Array<Object> = [];
    twoNews: Array<Object> = [];
    threeNews: Array<Object> = [];

    loading = false;
    constructor(
      private notify: QlNotificationService,
      private apiService: ApiService,
      private fb: FormBuilder,
      public modal: ModalService,
      public pageService: PageService,
      private message: QlMessageService,
      private router: Router) {
    }

    handle(index: string): void {
      this.tabIndex = index;
    }

    ngOnInit() {
        this.apiService.getallinfoList().subscribe(data => {
          this.oneNews = data.oneNews
          this.twoNews = data.twoNews
          this.threeNews = data.threeNews
        })
    }
}
